package cn.sise.edu.crm.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by chen on 2019/11/3.
 */
@Setter
@Getter
@ToString
public class Department {
    private Long id;
    private String name;
    private String sn;

    public String getJsonData(){

        Map<String,Object> map = new  HashMap<>();
        map.put("id",this.id);
        map.put("name",this.name);
        map.put("sn",this.sn);
        return JSON.toJSON(map).toString();
    }
}
